import request from '@/utils/request'
// let { AgricultureWholesale_API } = process.env
let AgricultureWholesale_API = 'AgricultureWholesale_API'

//获取农批市场检查列表
export function getAgricultureWholesaleMarketInspectList(data) {
  data.access_token = "c3puY3A=";
  return request({
    url: AgricultureWholesale_API + '/Inspect/GetDailyList',
    method: 'get',
    params: data
  })
}
//查看农批检查详情
export function getAgricultureWholesaleMarketInspectInfo(DailyId) {
  let data = {
    access_token: "c3puY3A=",
    DailyId: DailyId,
  }
  return request({
    url: AgricultureWholesale_API + '/Inspect/GetDailyView',
    method: 'get',
    params: data
  })
}
//作废农批检查
export function delAgricultureWholesaleMarketInspect(data) {
  data.access_token = "c3puY3A="
  return request({
    url: AgricultureWholesale_API + '/Inspect/DelDaily',
    method: 'get',
    params: data
  })
}
//获取市场接口
export function getAgricultureWholesaleMarketList(data) {
  data.access_token = "c3puY3A="
  return request({
    url: AgricultureWholesale_API + '/Reward/GetMarketUnit',
    method: 'get',
    params: data
  })
}
//新增检查
export function saveAgricultureWholesaleMarketInspect(data) {
  data.access_token = "c3puY3A="
  return request({
    url: AgricultureWholesale_API + '/Inspect/SaveDaily',
    method: 'post',
    params: { isLogin: "No" },
    data
  })
}
//获取新增检查预填食品安全管理人员联系人
export function getFoodSafetyPersonnelContacts(licenseNo) {
  let data = {
    access_token: "c3puY3A=",
    licenseNo: licenseNo
  }
  return request({
    url: AgricultureWholesale_API + '/UnitDetails/ManagementList',
    method: 'get',
    params: data
  })
}







